}
static gboolean
-stage_object (OstreeRepo *self,
- OstreeObjectType objtype,
- GFileInfo *file_info,
- GVariant *xattrs,
- GInputStream *input,
- const char *expected_checksum,
- GChecksum **out_checksum,
- GCancellable *cancellable,
- GError **error);
+stage_object_impl (OstreeRepo *self,
+ OstreeObjectType objtype,
+ GFileInfo *file_info,
+ GVariant *xattrs,
+ GInputStream *input,
+ const char *expected_checksum,
+ GChecksum **out_checksum,
+ GCancellable *cancellable,
+ GError **error);
static gboolean
impl_stage_archive_file_object_from_raw (OstreeRepo *self,
}
static gboolean
-stage_object (OstreeRepo *self,
- OstreeObjectType objtype,
- GFileInfo *file_info,
- GVariant *xattrs,
- GInputStream *input,
- const char *expected_checksum,
- GChecksum **out_checksum,
- GCancellable *cancellable,
- GError **error)
+stage_object_impl (OstreeRepo *self,
+ OstreeObjectType objtype,
+ GFileInfo *file_info,
+ GVariant *xattrs,
+ GInputStream *input,
+ const char *expected_checksum,
+ GChecksum **out_checksum,
+ GCancellable *cancellable,
+ GError **error)
{
gboolean ret = FALSE;
OstreeRepoPrivate *priv = GET_PRIVATE (self);
g_variant_get_size (serialized),
NULL);
- if (!stage_object (self, type,
- NULL, NULL, mem,
- NULL, &ret_checksum, cancellable, error))
+ if (!stage_object_impl (self, type,
+ NULL, NULL, mem,
+ NULL, &ret_checksum, cancellable, error))
goto out;
ret = TRUE;
}
gboolean
-ostree_repo_store_object_trusted (OstreeRepo *self,
+ostree_repo_stage_object_trusted (OstreeRepo *self,
OstreeObjectType objtype,
const char *checksum,
GFileInfo *file_info,
GCancellable *cancellable,
GError **error)
{
- return stage_object (self, objtype,
- file_info, xattrs, input,
- checksum, NULL, cancellable, error);
+ return stage_object_impl (self, objtype,
+ file_info, xattrs, input,
+ checksum, NULL, cancellable, error);
}
gboolean
-ostree_repo_store_object (OstreeRepo *self,
+ostree_repo_stage_object (OstreeRepo *self,
OstreeObjectType objtype,
const char *expected_checksum,
GFileInfo *file_info,
gboolean ret = FALSE;
GChecksum *actual_checksum = NULL;
- if (!stage_object (self, objtype,
- file_info, xattrs, input,
- expected_checksum, &actual_checksum, cancellable, error))
+ if (!stage_object_impl (self, objtype,
+ file_info, xattrs, input,
+ expected_checksum, &actual_checksum, cancellable, error))
goto out;
ret = TRUE;
if (!xattrs)
goto out;
- if (!stage_object (self, OSTREE_OBJECT_TYPE_RAW_FILE,
- modified_info, xattrs, file_input, NULL,
- &child_file_checksum, cancellable, error))
+ if (!stage_object_impl (self, OSTREE_OBJECT_TYPE_RAW_FILE,
+ modified_info, xattrs, file_input, NULL,
+ &child_file_checksum, cancellable, error))
goto out;
g_hash_table_replace (file_checksums, g_strdup (name),
if (g_file_info_get_file_type (file_info) == G_FILE_TYPE_REGULAR)
archive_stream = ostree_libarchive_input_stream_new (a);
- if (!stage_object (self, OSTREE_OBJECT_TYPE_RAW_FILE,
- file_info, NULL, archive_stream,
- NULL, &ret_checksum,
- cancellable, error))
+ if (!stage_object_impl (self, OSTREE_OBJECT_TYPE_RAW_FILE,
+ file_info, NULL, archive_stream,
+ NULL, &ret_checksum,
+ cancellable, error))
goto out;
ret = TRUE;